import request from "@/utils/request";

//查询仪器列表
export function reagentList(data) {
  return request({
    url: `/reagent/reagentList`,
    method: "post",
    data
  });
}

//试剂名称列表
export function nameList(data) {
  return request({
    url: `/reagent/nameList`,
    method: "post",
    data
  });
}

//新增
export function addReaGent(data) {
  return request({
    url: `/reagent/addReaGent`,
    method: "post",
    data
  });
}
//编辑
export function updateReagent(data) {
  return request({
    url: `/reagent/updateReagent`,
    method: "post",
    data
  });
}

//详情
export function detail(params) {
  return request({
    url: `/reagent/detail`,
    method: "get",
    params
  });
}

//删除
export function deleteById(params) {
  return request({
    url: `/reagent/deleteById`,
    method: "get",
    params
  });
}

//复制
export function copy(params) {
  return request({
    url: `/reagent/copy`,
    method: "get",
    params
  });
}

//试剂耗材单位下拉框
export function unitDropDown(params) {
  return request({
    url: `/reagent/unitDropDown`,
    method: "get",
    params
  });
}

//新增试剂耗材单位
export function addReagentUnit(data) {
  return request({
    url: `/reagent/addReagentUnit`,
    method: "post",
    data
  });
}

//删除试剂耗材单位
export function removeUnit(params) {
  return request({
    url: `/reagent/removeUnit`,
    method: "get",
    params
  });
}

//试剂耗材预警设置
export function alertSet(params) {
  return request({
    url: `/reagent/alertSet`,
    method: "get",
    params
  });
}

//试剂耗材预警设置
export function noticeDetail(params) {
  return request({
    url: `/deviceCheck/noticeDetail`,
    method: "get",
    params
  });
}

//申请试剂耗材
export function apply(data) {
  return request({
    url: `/reagentApply/apply`,
    method: "post",
    data
  });
}

//已申领试剂耗材记录列表
export function reagentApplyList(data) {
  return request({
    url: `/reagentApply/reagentApplyList`,
    method: "post",
    data
  });
}

//撤回申领
export function revoke(params) {
  return request({
    url: `/reagentApply/revoke`,
    method: "get",
    params
  });
}

//出库
export function outbound(data) {
  return request({
    url: `/reagentApply/outbound`,
    method: "post",
    data
  });
}

//主动出库
export function activeOutbound(data) {
  return request({
    url: `/reagentApply/activeOutbound`,
    method: "post",
    data
  });
}

//试剂耗材申请出库列表
export function applyList(data) {
  return request({
    url: `/reagentApply/applyList`,
    method: "post",
    data
  });
}

//试剂耗材待返还列表
export function returnList(data) {
  return request({
    url: `/reagentApply/returnList`,
    method: "post",
    data
  });
}

//领用记录
export function applyRecords(data) {
  return request({
    url: `/reagentApply/applyRecords`,
    method: "post",
    data
  });
}

//领用记录试剂列表
export function applyReagentRecords(data) {
  return request({
    url: `/reagentApply/applyReagentRecords`,
    method: "post",
    data
  });
}

//领用详情列表
export function applyRecordList(data) {
  return request({
    url: `/reagentApply/applyRecordList`,
    method: "post",
    data
  });
}

//查看领用详情
export function detail1(params) {
  return request({
    url: `/reagentApply/detail`,
    method: "get",
    params
  });
}

//期间核查列表
export function reagentCheckList(data) {
  return request({
    url: `/reagent/reagentCheckList`,
    method: "post",
    data
  });
}

//新增期间核查
export function reagentCheck(data) {
  return request({
    url: `/reagent/reagentCheck`,
    method: "post",
    data
  });
}

//期间核查历史列表
export function reagentCheckHistory(data) {
  return request({
    url: `/reagent/reagentCheckHistory`,
    method: "post",
    data
  });
}

//期间核查审核列表
export function reagentVerifyHistory(data) {
  return request({
    url: `/reagent/reagentVerifyHistory`,
    method: "post",
    data
  });
}

//期间核查审核
export function verifyCheck(params) {
  return request({
    url: `/reagent/verifyCheck`,
    method: "get",
    params
  });
}

//期间核查审核
export function getCheckById(params) {
  return request({
    url: `/reagent/getCheckById`,
    method: "get",
    params
  });
}

//试剂耗材申购列表
export function purchaseList(data) {
  return request({
    url: `/reagentPurchase/purchaseList`,
    method: "post",
    data
  });
}

//申购试剂耗材
export function purchase(data) {
  return request({
    url: `/reagentPurchase/purchase`,
    method: "post",
    data
  });
}

//更新申购试剂耗材
export function updatePurchase(data) {
  return request({
    url: `/reagentPurchase/updatePurchase`,
    method: "post",
    data
  });
}

//提交审核
export function submit(params) {
  return request({
    url: `/reagentPurchase/submit`,
    method: "get",
    params
  });
}

//申购试剂耗材详情
export function detail2(params) {
  return request({
    url: `/reagentPurchase/detail`,
    method: "get",
    params
  });
}

//申购审核列表
export function checkList(data) {
  return request({
    url: `/reagentPurchase/checkList`,
    method: "post",
    data
  });
}

//申购试剂耗材详情
export function check(params) {
  return request({
    url: `/reagentPurchase/check`,
    method: "get",
    params
  });
}

//申购审核历史列表
export function checkHistoryList(data) {
  return request({
    url: `/reagentPurchase/checkHistoryList`,
    method: "post",
    data
  });
}

//试剂耗材验收列表
export function storageList(data) {
  return request({
    url: `/reagentPurchase/storageList`,
    method: "post",
    data
  });
}

//验收确认
export function storage(data) {
  return request({
    url: `/reagentPurchase/storage`,
    method: "post",
    data
  });
}

//试剂耗材验收历史列表
export function storageHistoryList(data) {
  return request({
    url: `/reagentPurchase/storageHistoryList`,
    method: "post",
    data
  });
}

//验收详情
export function storageDetail(params) {
  return request({
    url: `/reagentPurchase/storageDetail`,
    method: "get",
    params
  });
}

//试剂过期预警列表
export function adventList(data) {
  return request({
    url: `/reagent/adventList`,
    method: "post",
    data
  });
}


//试剂库存预警列表
export function stockList(data) {
  return request({
    url: `/reagent/stockList`,
    method: "post",
    data
  });
}

//试剂降级
export function demote(params) {
  return request({
    url: `/reagent/demote`,
    method: "get",
    params
  });
}

//报废处理
export function scrap(data) {
  return request({
    url: `/reagent/scrap`,
    method: "post",
    data
  });
}

//报废记录
export function scrapList(data) {
  return request({
    url: `/reagent/scrapList`,
    method: "post",
    data
  });
}

//新增试剂名称
export function addName(data) {
  return request({
    url: `/reagent/addName`,
    method: "post",
    data
  });
}

//试剂名称列表
export function nameList1(data) {
  return request({
    url: `/reagent/nameList`,
    method: "post",
    data
  });
}

//修改试剂名称
export function updateName(data) {
  return request({
    url: `/reagent/updateName`,
    method: "post",
    data
  });
}

//删除试剂名称
export function deleteName(params) {
  return request({
    url: `/reagent/deleteName`,
    method: "get",
    params
  });
}


//供应商列表
export function supplierPage(params) {
  return request({
    url: `/supplier/supplierPage`,
    method: "get",
    params
  });
}


//新增供应商
export function saveSupplier(data) {
  return request({
    url: `/supplier/saveSupplier`,
    method: "post",
    data
  });
}

//修改供应商
export function update(data) {
  return request({
    url: `/supplier/update`,
    method: "post",
    data
  });
}

//供应商详情
export function detail3(params) {
  return request({
    url: `/supplier/detail`,
    method: "get",
    params
  });
}
// 试剂耗材归还
export function restore(data) {
  return request({
    url: `/reagentApply/restore`,
    method: "post",
    data
  });
}